<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>日期控件——范围限定在昨天到明天</title>
    <script type="application/javascript" charset="utf-8" src="../laydate/laydate.js"></script>
    <script>
        window.onload = function () {
            laydate.skin('molv');
            laydate({
                elem: '#hello3',
                min: laydate.now(-1), //-1代表昨天，-2代表前天，以此类推
                max: laydate.now(+1) //+1代表明天，+2代表后天，以此类推
            });
        }
    </script>
    <style>
        .inline{display:inline-block; *display:inline; *zoom:1; vertical-align:top;}
    </style>
</head>
<body>
<div class="inline laydate-icon" style="width:150px;" id="hello3"></div>
</body>
</html>